/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package luft27.propertytree;

/**
 *
 * @author amalikov
 */
public class PropertyTree {
	private PropertyTree() {
		root = new PropertyNode("root");
	}

	public void set(String path, PropertyValue value) {
		root.set(path, value);
	}
	
	public PropertyValue get(String path) {
		return root.get(path);
	}
	
	public PropertyNode getNode(String path) {
		return root.getNode(path);
	}

	public PropertyNode getRoot() {
		return root;
	}
	
	public static final PropertyTree INSTANCE = new PropertyTree();	
	private final PropertyNode root;
}
